﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars.Helpers;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using DevExpress.UserSkins;


namespace QLTTTH
{
    public partial class rbpgBangHocPhi : RibbonForm
    {
        public rbpgBangHocPhi()
        {
            InitializeComponent();
            InitSkinGallery();
        }

        void InitSkinGallery()
        {
            SkinHelper.InitSkinGallery(rgbiSkins, true);
        }
           
        private void btn_hocvientrungtam_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_thongtinsvtruong svtruong = new frm_thongtinsvtruong();
            svtruong.MdiParent = this;
            svtruong.Show();
        }

        private void btn_hocvienngoai_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_svtudo svtudo = new frm_svtudo();
            svtudo.MdiParent = this;
            svtudo.Show();
        }

        private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_ghidanh ghidanh = new frm_ghidanh();
            ghidanh.MdiParent = this;
            ghidanh.Show();
        }

        private void btn_tracuuhocvien_ItemClick(object sender, ItemClickEventArgs e)
        {
            
        }

        private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        {
        }

        private void barButtonItem19_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_thongtinlop thongtinlop = new frm_thongtinlop();
            thongtinlop.MdiParent = this;
            thongtinlop.Show();
        }

        private void btn_timkiemkhoacu_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmTTKhoaDaHoc thongtinkhoacu = new frmTTKhoaDaHoc();
            thongtinkhoacu.MdiParent = this;
            thongtinkhoacu.Show();
        }

        private void barButtonItem18_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmKhaiGiang khaigiangkhoamoi = new frmKhaiGiang();
            khaigiangkhoamoi.MdiParent = this;
            khaigiangkhoamoi.Show();
        }

        private void btn_molopmoi_ItemClick(object sender, ItemClickEventArgs e)
        {
            
        }

        private void btn_nhanvien_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_nhanvien nhanvien = new frm_nhanvien();
            nhanvien.MdiParent = this;
            nhanvien.Show();
        }

        private void barButtonItem4_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_tinhluong tinhluong = new frm_tinhluong();
            tinhluong.MdiParent = this;
            tinhluong.Show();
        }

        public void barButtonItem6_ItemClick(object sender, ItemClickEventArgs e)
        {
            frm_HocPhi hocphi = new frm_HocPhi();
            hocphi.MdiParent = this;
            hocphi.Show();
        }

        private void barButtonItem14_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmDangKyThi dangkithi = new frmDangKyThi();
            dangkithi.MdiParent = this;
            dangkithi.Show();
        }

        private void barButtonItem7_ItemClick(object sender, ItemClickEventArgs e)
        {
            Frm_ketquathi ketquathi = new Frm_ketquathi();
            ketquathi.MdiParent = this;
            ketquathi.Show();
        }

        private void frm_main_FormClosing(object sender, FormClosingEventArgs e)
        {
        
            DialogResult thoat = new DialogResult();
            thoat = MessageBox.Show("Bạn có muốn thoát khỏi phần mềm không ?", "Thoát", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (thoat == DialogResult.No)
            {
                e.Cancel = true;
            }
        }

        private void frm_main_Load(object sender, EventArgs e)
        {
            frmDangNhap dangnhap = new frmDangNhap();
            dangnhap.MdiParent = this;
            dangnhap.Show();
        }

        

        private void btnThemNhanVien_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmThemNVMoi themnv = new frmThemNVMoi();
            themnv.MdiParent = this;
            themnv.Show();}

        private void btnTTKhoaHoc_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmTTkhoahoc khoahoc = new frmTTkhoahoc();
            khoahoc.MdiParent = this;
            khoahoc.Show();
        }

        private void btn_LichSuThayDoi_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmLuuVet LuuVet = new frmLuuVet();
            LuuVet.MdiParent = this;
            LuuVet.Show();
        }
    }
}